import 'package:json_annotation/json_annotation.dart';

part 'xindong_gift_class.g.dart';

@JsonSerializable()
class XinDongGiftClass {
  late int id;
  late int cate_id;
  late String name;
  late String preview; // icon
  late String price;
  int? star;
  int? total;
  String? cover; // svga

  XinDongGiftClass();

  factory XinDongGiftClass.fromJson(Map<String, dynamic> json) => _$XinDongGiftClassFromJson(json);

  Map<String, dynamic> toJson() => _$XinDongGiftClassToJson(this);
}
